/*
 * HexPath.java
 *
 * Created on November 17, 2007, 2:47 PM
 *
 * Copyright (C) 2007-2008  Hylke van der Schaaf
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, in version 3 of the License.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */
package hextd.hex;

import hextd.core.Context;
import java.awt.Graphics2D;

/**
 *
 * @author hylke
 */
public class HexTransparent extends HexBase {

	public static char key = 't';

	/**
	 * Creates a new instance of HexPath
	 */
	public HexTransparent(int x, int y, Context context, boolean leftToRight) {
		super(x, y, context, true, leftToRight);
		if (cn != null) {
			this.borderColor = cn.colors.getColorBaseEmptyHexBorder();
			this.fillColor = cn.colors.getColorOpenBackGround();
		}
		this.type = Hex.HexType.baseTransparent;
		this.shortName = key;
	}

	@Override
	public void paintBase(Graphics2D g2_0, Graphics2D g2_1) {
	}

	@Override
	public void paintEffects(Graphics2D g2) {
		switch (this.highlight) {
			case placeTower:
				g2.setColor(this.highlightOK);
				g2.fill(this.polyHex);
				this.paintRangeCircle(g2);
				break;
			case editHex:
				g2.setColor(this.highlightOK);
				g2.fill(this.polyHex);
				break;
			default:
		}
	}
}
